package com.wxzl.community.common.data

import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.wxzl.community.common.R
import com.wxzl.community.common.base.BaseApp

/**
 * @Author: LiaoZhongKai
 * @Date: 2021/6/22 16:05
 * @Description: 支付方式
 */
class PaymentMethodEntity(@DrawableRes val iconRes: Int, val method: String, var checked: Boolean = false){
    companion object{
        fun get(): MutableList<PaymentMethodEntity>{
            val result = mutableListOf<PaymentMethodEntity>()
            result.add(PaymentMethodEntity(R.mipmap.ic_wechat_pay,BaseApp.instance.resources.getString(R.string.wechat_pay),true))
            result.add(PaymentMethodEntity(R.mipmap.ic_alipay,BaseApp.instance.resources.getString(R.string.ali_pay)))
            result.add(PaymentMethodEntity(R.mipmap.ic_yunshanfu,BaseApp.instance.resources.getString(R.string.yunshanfu_pay)))
            result.add(PaymentMethodEntity(R.mipmap.ic_best_pay,BaseApp.instance.resources.getString(R.string.best_pay)))
            result.add(PaymentMethodEntity(R.mipmap.ic_jd_pay,BaseApp.instance.resources.getString(R.string.jd_pay)))
            return result
        }
    }
}